package com.hao.tool.extra.cloud.module.tengxun.entity;

import com.qcloud.cos.model.PutObjectResult;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * description
 *
 * @author RuiHaoZ on CMHK.jx
 * @date 2020-07-26 17:52
 */
@Getter
@Setter
@Accessors(chain = true)
public class TxCosResult {

    public TxCosResult(PutObjectResult putObjectResult) {
        this.putObjectResult = putObjectResult;
    }

    public TxCosResult() {
    }

    private String code;
    private String message;
    private String accessUrl;

    public TxCosResult setAccessUrl(String bucketPath) {
        this.accessUrl = bucketPath;
        return this;
    }

    private PutObjectResult putObjectResult;
}
